home *** CD-ROM | disk | FTP | other *** search
- GRABTEXT PIRATES TOOLCHEST BILL BUCKELS Registration 10.00
- GRABTEXT BUCKELS PIRATES CEE
-
- Attention all IBM PC USERS who do not "LOOK a WORK HORSE in
- the MOUTH."
-
- On the May Long Weekend I did not make it to the beach and
- instead created a Toolbox of reasonably useful text screen
- manipulation programs. It is now nearing the end of august,
- sort of the wrong end of the summer, and I have found my way
- back to this particular hodgepodge and I have revised and
- updated the original selection to support a fairly effective
- run length encoding and Text Screen compression scheme that
- typically compresses a 4k textscreen to less than half its
- size in a Binary File which I have dubbed a PTX file, using
- a modified PCX (ZSOFT) algorithm and providing a 128K
- descriptive header.
-
- Program Synopsis:
-
- GRABTEXT EXE - Memory Resident Screen Capture Utility
- TEXTVU EXE - Screen Viewer and Batch File Driver
- BSV2TXT EXE - BSAVED to Ascii File Conversion Utility
- PTXMAKE EXE - BSAVED Screen Compression Utility
- BSAVEINC EXE - Programmers Tool- Screen Compression
-
- Demo Programs -
-
- RUNFIRST EXE - C language source also included
- BATCH EXE - C language source also included
- SDNLOGON EXE - C language source also included
- TEXTSHOW BAT - Batch File
- BLOADER BAS - BASIC
-
- The Camera Utility and the Extended Batch File Interpreter
- Are Targeted At People like sysops who use TEXT GRAPHICS on
- the IBM PC and who typically use Editors like THEDRAW
- to create them, and this was my original intended User
- Group (although I really hadn't thought much about marketing
- the effort). But I recently had need of a tiny program that
- would display a text graphic in very little disk space.
- Rather than Hard Code the thing, I set about to Create a
- Toolbox of Utilities based on the BSAVED Text Screen Image
- Format and Augmented and changed my original work in this
- area to the point where C language programmers Might Benefit
- from this ToolBox. The use of the external file was too
- clumsy and too subject to the "GONE FISHING" (missing file)
- syndrome, so my conclusion to my programmer's toolkit
- provides a utility for the embedding of BSAVED TEXT SCREENS
- in an encoded array which can then be embedded within the
- program itself.
-
-
- I am including all the C language Source Code with the
- EXE's. We have some reasonably informative stuff here like
- A SCREEN CAPTURE utility that TERMINATES and STAYS
- RESIDENT,and demonstration programs that Use embedded sound
- as well as embedded encoded Text Screens .(However, the
- source is low level procedural stuff and Pretty hardware
- dependent, and a world away from object oriented or Resource
- Forks and other fine cooking utensils.)
-
- With the exception of the GRABBER (GRABTEXT.EXE) which is
- written in medium memory model MIX POWER C, and the DEMO
- called RUNFIRST.EXE which is written in MIX POWER C Small
- model, the work was done in Aztec C small model which
- produces extremely tiny exe's (it converts all the C code
- to assembler prior to compiling and uses the assembler
- to assemble the code).
-
- Other compilers will need to substitute the AZTEC routines
- with their own, and inline assembler is used.
-
- A.) GRABTEXT.EXE Version 1.0 screen Grabber Utility
-
- A memory resident frame grabber for text screens. CAPTURE
- ANY TEXT SCREEN IN ANY PROGRAM THAT USES 80 column mode
- then inhale the TROPHY screen into an EDITOR like THEDRAW
- and HAVE YOUR WAY WITH IT!!! There's lots of good text
- graphics lyin' around just waiting to be grabbed. The
- PRINT SCREEN KEY is used as as the "CAMERA SHUTTER" . IMAGES
- are stored in BSAVED image format in sequential order in the
- current directory starting with "IMAGE000.BSV". These Files
- may be directly inhaled into THEDRAW and converted to .ANS
- there or bloaded from BASIC. 25x80 column text mode only is
- supported. I have included a sample GWBASIC PROGRAM called
- BLOADER.BAS to demonstrate the loading of these SCREENS in
- BASIC.
-
- B.) TEXTVU.EXE Text Screen Viewer and Extended Batch Manager
-
- FORMATS supported are .BSV, .ANS, .TXT, and PTX. Loads a
- text screen in those formats and returns to DOS with an
- ERRORLEVEL at a KEY PRESS.
-
- One possible use of this utility could be as the driver of a
- HUGE GALLOPING PROGRAM in the form of a BATCH FILE with
- DECISIONS. Your fine text screens can be displayed until the
- appropriate keypress which can then be used to branch your
- BATCH FILE. EASY WAY to write a text adventure at the
- DOS prompt or a DOORS program using .ANS files. (THE
- DIRECT SCREEN WRITES REQUIRED BY THE .BSV DON'T REDIRECT
- THROUGH BBS PROGRAMS THAT I HAVE TESTED THIS UTILITY WITH.)
- (ANSI SYS is required for the display of the .ANS files.)
-
- I have included a demo program called TEXTSHOW.BAT which
- exemplifies the use of TEXTVU as a BATCH FILE interpreter
- using the PTX compressed format. (The other formats would
- have worked as well).
-
- C.) BSV2TXT.EXE Bsaved to Ascii Coversion Utility
-
- If you want to Convert these fine grabs into a straight
- ascii text file, the utility BSV2TXT will create a version
- of your grab that a good text editor or word processor can
- use...
-
- BSV2TXT converts bsaved text screens to text files
- stripping off the color attributes and truncating the white
- space so that the file size is often drastically reduced.
- USAGE is "BSV2TXT [infile] [outfile]".
-
- D. PTXMAKE.EXE- BSAVED compressed format conversion Utility
-
- The USAGE is "PTXMAKE [filename]". This utility will
- compress most screens so that they take lessthan a sector of
- DISC space on your hard disk (2048 bytes under DOS 4.01).
- You can't get any better than 1 sector per file. The raw
- BSAVED file uses double that. On a 1.2 meg floppy there is
- room for improvement since each sector is only 512k, but all
- things considered, this is the "WAY TO GO" versus the BSAVED
- image format.
-
- D. BSAVEINC.EXE- BSAVED compressed format conversion Utility
-
- The USAGE is "BSAVEINC [filename]".
-
- This one will interest programmers only, and the Sample C
- program Source Code will provide information on practical
- applications for the run-length encoded embedded arrays that
- this utility creates from a .BSV BSAVED IMAGE.
-
- E. Please Direct Registration and Correspondence to:
-
- Bill Buckels
- 982 Hector Avenue
- Winnipeg, Manitoba, Canada
- R3M 2G6
-
- One final comment- In some of my examples I do not save and
- restore the stack when I slip into INLINE assembly. This is
- not good form and certainly not recommended if you are
- concerned with the state of your processor on the next
- operation. Dos 4.01 is more forgiving than earlier versions
- and seems to give one more lattitude, but a true true xt
- running dos 3.3 will freeze solid if the registers are not
- pushed prior and popped after and that includes the use of
- the exit() function on program termination. Frankly, your
- int86 routines are much safer than inline.